package agngui.event;

import agngui.agnmodel.AGNObject;

/**
 * defines an ObjectEvent in the system
 * @author Ben Bloom
 * @author Phil Johnson
 */
public class ObjectEvent extends AGNEvent {
	
	/**
	 * the AGNObject being affected
	 */
	protected AGNObject object;
	
	/**
	 * constructs a new ObjectEvent
	 * @param object The object being affected
	 */
	public ObjectEvent(AGNObject object) {
		this.object = object;
	}
	
	/**
	 * gives back the object that this event affects
	 * 
	 * @return The object being affected
	 */
	public AGNObject getObject() { return object; }
}
